package com.hbnu.test.www;

import java.util.Scanner;

public class test4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int height = 0;
        int wealthy = 0;
        boolean handsome;
        height = scanner.nextInt();
        wealthy = scanner.nextInt();
        handsome = scanner.nextBoolean();
        if(height >=180 && wealthy >= 100 && handsome){
            System.out.print("YES!!!!!!!");
        }
        else if(height < 180 && wealthy < 100 && !handsome){
            System.out.print("OK.");
        }
        else{
            System.out.print("NO!!!");
        }
    }
}
